(function(){function Re(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function z(t,i,e){return i&&Re(t.prototype,i),e&&Re(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function G(){return G=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},G.apply(this,arguments)}function H(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,re(t,i)}function re(t,i){return re=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},re(t,i)}function at(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(t,i,e){return E=at()?Reflect.construct:function(n,r,a){var o=[null];o.push.apply(o,r);var f=new(Function.bind.apply(n,o));return a&&re(f,a.prototype),f},E.apply(null,arguments)}function ce(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ne(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}function w(t,i){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(r,a){if(r){if(typeof r=="string")return Ne(r,a);var o=Object.prototype.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ne(r,a):void 0}}(t))||i&&t&&typeof t.length=="number"){e&&(t=e);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}for(var C=null,Oe=["percent","length","angle","time","frequency","resolution","flex"],_={fontRelativeLengths:{units:new Set(["em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh"])},viewportRelativeLengths:{units:new Set(["vw","lvw","svw","dvw","vh","lvh","svh","dvh","vi","lvi","svi","dvi","vb","lvb","svb","dvb","vmin","lvmin","svmin","dvmin","vmax","lvmax","svmax","dvmax"])},absoluteLengths:{units:new Set(["cm","mm","Q","in","pt","pc","px"]),compatible:!0,canonicalUnit:"px",ratios:{cm:96/2.54,mm:96/2.54/10,Q:96/2.54/40,in:96,pc:16,pt:96/72,px:1}},angle:{units:new Set(["deg","grad","rad","turn"]),compatible:!0,canonicalUnit:"deg",ratios:{deg:1,grad:.9,rad:180/Math.PI,turn:360}},time:{units:new Set(["s","ms"]),compatible:!0,canonicalUnit:"s",ratios:{s:1,ms:.001}},frequency:{units:new Set(["hz","khz"]),compatible:!0,canonicalUnit:"hz",ratios:{hz:1,khz:1e3}},resolution:{units:new Set(["dpi","dpcm","dppx"]),compatible:!0,canonicalUnit:"dppx",ratios:{dpi:1/96,dpcm:2.54/96,dppx:1}}},Ve=new Map,fe=0,Le=Object.values(_);fe<Le.length;fe++){var me=Le[fe];if(me.compatible)for(var je,ot=w(me.units);!(je=ot()).done;)Ve.set(je.value,me)}function he(t){return Ve.get(t)}function lt(t,i){for(var e=G({},t),n=0,r=Object.keys(i);n<r.length;n++){var a=r[n];e[a]?e[a]+=i[a]:e[a]=i[a]}return e}function Ue(t){return t==="number"?{}:t==="percent"?{percent:1}:_.absoluteLengths.units.has(t)||_.fontRelativeLengths.units.has(t)||_.viewportRelativeLengths.units.has(t)?{length:1}:_.angle.units.has(t)?{angle:1}:_.time.units.has(t)?{time:1}:_.frequency.units.has(t)?{frequency:1}:_.resolution.units.has(t)?{resolution:1}:t==="fr"?{flex:1}:C}function ae(t){if(t instanceof CSSUnitValue){var i,e=t.unit,n=t.value,r=he(t.unit);return r&&e!==r.canonicalUnit&&(n*=r.ratios[e],e=r.canonicalUnit),e==="number"?[[n,{}]]:[[n,(i={},i[e]=1,i)]]}if(t instanceof CSSMathInvert){if(!(t.value instanceof CSSUnitValue))throw new Error("Not implemented");var a=ae(t.value);if(a===C||a.length>1)return C;for(var o=a[0],f={},s=0,l=Object.entries(o[1]);s<l.length;s++){var c=l[s];f[c[0]]=-1*c[1]}return a[0]=[1/o[0],f],a}if(t instanceof CSSMathProduct){for(var u,m=[[1,{}]],h=w(t.values);!(u=h()).done;){var p=ae(u.value),v=[];if(p===C)return C;for(var T,y=w(m);!(T=y()).done;)for(var S,I=T.value,A=w(p);!(S=A()).done;){var x=S.value;v.push([I[0]*x[0],lt(I[1],x[1])])}m=v}return m}throw new Error("Not implemented")}function st(t,i){if(Ue(i)===C)throw new SyntaxError("The string did not match the expected pattern.");var e=ae(t);if(!e)throw new TypeError;if(e.length>1)throw new TypeError("Sum has more than one item");var n=function(r,a){var o=r.unit,f=r.value,s=he(o),l=he(a);return l&&s===l?new CSSUnitValue(f*l.ratios[o]/l.ratios[a],a):C}(_e(e[0]),i);if(n===C)throw new TypeError;return n}function _e(t){var i=t[0],e=Object.entries(t[1]);if(e.length>1)return C;if(e.length===0)return new CSSUnitValue(i,"number");var n=e[0];return n[1]!==1?C:new CSSUnitValue(i,n[0])}function We(t){var i=[].slice.call(arguments,1);if(i&&i.length)throw new Error("Not implemented");var e=ae(t),n=e.map(function(r){return _e(r)});if(n.some(function(r){return r===C}))throw new TypeError("Type error");return E(CSSMathSum,n)}function ut(t,i){var e;if(t.percentHint&&i.percentHint&&t.percentHint!==i.percentHint)return C;for(var n,r=G({},t,{percentHint:(e=t.percentHint)!=null?e:i.percentHint}),a=w(Oe);!(n=a()).done;){var o=n.value;i[o]&&(r[o]!=null||(r[o]=0),r[o]+=i[o])}return r}var ct=new Set(["px","deg","s","hz","dppx","number","fr"]);function pe(t){return ct.has(t.toLowerCase())}function De(t,i){return t.reduce(function(e,n){return e.has(n[i])?e.get(n[i]).push(n):e.set(n[i],[n]),e},new Map)}function ze(t,i){for(var e,n=[],r=[],a=w(t);!(e=a()).done;){var o=e.value;i(o)?n.push(o):r.push(o)}return[n,r]}function N(t,i){function e(g){return Array.from(g).map(function(Q){return N(Q,i)})}if(t instanceof CSSUnitValue){if(t.unit==="percent"&&i.percentageReference)return new CSSUnitValue(t.value/100*i.percentageReference.value,i.percentageReference.unit);var n=t.toSum();return n&&n.values.length===1&&(t=n.values[0]),t instanceof CSSUnitValue&&t.unit==="em"&&i.fontSize&&(t=new CSSUnitValue(t.value*i.fontSize.value,i.fontSize.unit)),t}if(!t.operator)return t;switch(t.operator){case"sum":t=E(CSSMathSum,e(t.values));break;case"product":t=E(CSSMathProduct,e(t.values));break;case"negate":t=new CSSMathNegate(N(t.value,i));break;case"clamp":t=new CSSMathClamp(N(t.lower,i),N(t.value,i),N(t.upper,i));break;case"invert":t=new CSSMathInvert(N(t.value,i));break;case"min":t=E(CSSMathMin,e(t.values));break;case"max":t=E(CSSMathMax,e(t.values))}if(t instanceof CSSMathMin||t instanceof CSSMathMax){var r=Array.from(t.values);if(r.every(function(g){return g instanceof CSSUnitValue&&g.unit!=="percent"&&pe(g.unit)&&g.unit===r[0].unit})){var a=Math[t.operator].apply(Math,r.map(function(g){return g.value}));return new CSSUnitValue(a,r[0].unit)}}if(t instanceof CSSMathMin||t instanceof CSSMathMax){var o=ze(Array.from(t.values),function(g){return g instanceof CSSUnitValue&&g.unit!=="percent"}),f=o[1],s=Array.from(De(o[0],"unit").values()),l=s.some(function(g){return g.length>0});if(l){var c=s.map(function(g){var Q=Math[t.operator].apply(Math,g.map(function(Ae){return Ae.value}));return new CSSUnitValue(Q,g[0].unit)});t=t instanceof CSSMathMin?E(CSSMathMin,c.concat(f)):E(CSSMathMax,c.concat(f))}return t}if(t instanceof CSSMathNegate)return t.value instanceof CSSUnitValue?new CSSUnitValue(0-t.value.value,t.value.unit):t.value instanceof CSSMathNegate?t.value.value:t;if(t instanceof CSSMathInvert)return t.value instanceof CSSMathInvert?t.value.value:t;if(t instanceof CSSMathSum){for(var u,m=[],h=w(t.values);!(u=h()).done;){var p,v=u.value;v instanceof CSSMathSum?(p=m).push.apply(p,v.values):m.push(v)}return y=(T=m).filter(function(g){return g instanceof CSSUnitValue}),S=T.filter(function(g){return!(g instanceof CSSUnitValue)}),I=Array.from(De(y,"unit").entries()).map(function(g){var Q=g[0],Ae=g[1].reduce(function(It,Pt){return It+Pt.value},0);return new CSSUnitValue(Ae,Q)}),(m=[].concat(S,I)).length===1?m[0]:E(CSSMathSum,m)}var T,y,S,I;if(t instanceof CSSMathProduct){for(var A,x=[],j=w(t.values);!(A=j()).done;){var B,U=A.value;U instanceof CSSMathProduct?(B=x).push.apply(B,U.values):x.push(U)}var R=ze(x,function(g){return g instanceof CSSUnitValue&&g.unit==="number"}),K=R[0],kt=R[1];if(K.length>1){var Mt=K.reduce(function(g,Q){return g*Q.value},1);x=[new CSSUnitValue(Mt,"number")].concat(kt)}if(x.length===2){for(var Ce,Ie,rt,Ct=w(x);!(rt=Ct()).done;){var Z=rt.value;Z instanceof CSSUnitValue&&Z.unit==="number"?Ce=Z:Z instanceof CSSMathSum&&[].concat(Z.values).every(function(g){return g instanceof CSSUnitValue})&&(Ie=Z)}if(Ce&&Ie)return E(CSSMathSum,[].concat(Ie.values).map(function(g){return new CSSUnitValue(g.value*Ce.value,g.unit)}))}if(x.every(function(g){return g instanceof CSSUnitValue&&pe(g.unit)||g instanceof CSSMathInvert&&g.value instanceof CSSUnitValue&&pe(g.value.unit)})){var Pe=E(CSSMathProduct,x).toSum();if(Pe&&Pe.values.length===1)return Pe.values[0]}return E(CSSMathProduct,x)}return t}(function(){var t=new WeakMap;function i(s){for(var l,c=[],u=0;u<s.length;u++)c[u]=typeof(l=s[u])=="number"?new CSSUnitValue(l,"number"):l;return c}var e=function(){function s(l,c,u,m){t.set(this,{values:i(l),operator:c,name:u||c,delimiter:m||", "})}return s.prototype.toString=function(){var l=t.get(this);return l.name+"("+l.values.join(l.delimiter)+")"},z(s,[{key:"operator",get:function(){return t.get(this).operator}},{key:"values",get:function(){return t.get(this).values}}]),s}();function n(s){var l=[],c=s.split(/(?<!\([^\)]*)([*])(?![^\(]*\))/);for(l.push(r(c.shift()));c.length;)c.shift(),l.push(r(c.shift()));return E(CSSMathProduct,l)}function r(s){var l=[],c=s.split(/(?<!\([^\)]*)([/])(?![^\(]*\))/);for(l.push(a(c.shift()));c.length;)c.shift(),l.push(new CSSMathInvert(a(c.shift())));return E(CSSMathProduct,l)}function a(s){return(s=s.trim()).match(/^[a-z(]/i)?function(l){var c=l.match(/^(calc|min|max)?\((.*)\)$/);if(!c)throw new SyntaxError("Unsupported syntax "+l);var u=c[1],m=c[2];switch(u===void 0?"parens":u){case"calc":case"parens":return function(h){var p=[],v=h.split(/(?<!\([^\)]*)(\s[+-]\s)(?![^\(]*\))/);for(p.push(n(v.shift()));v.length;){var T=v.shift(),y=v.shift();T.trim()==="+"?p.push(n(y)):T.trim()==="-"&&p.push(new CSSMathNegate(n(y)))}return E(CSSMathSum,p)}(m);case"min":return E(CSSMathMin,m.split(",").map(a));case"max":return E(CSSMathMax,m.split(",").map(a))}}(s):function(l){var c=l.match(/^(-?\d*[.]?\d+)(r?em|r?ex|r?cap|r?ch|r?ic|r?lh|[sld]?v(w|h|i|b|min|max)|cm|mm|Q|in|pt|pc|px|%)?$/);if(c){var u=c[2];return u===void 0?u="number":u==="%"&&(u="percent"),new CSSUnitValue(parseFloat(c[1]),u)}throw new SyntaxError("Unsupported syntax "+l)}(s)}var o={CSSNumericValue:function(){function s(){}return s.parse=function(l){return N(a(l),{})},s}(),CSSUnitValue:function(){function s(c,u){t.set(this,{value:c,unit:u})}var l=s.prototype;return l.to=function(c){return st(this,c)},l.toSum=function(){return We.apply(void 0,[this].concat([].slice.call(arguments)))},l.type=function(){return Ue(t.get(this).unit)},l.toString=function(){var c=t.get(this);return""+c.value+function(u){switch(u){case"percent":return"%";case"number":return"";default:return u.toLowerCase()}}(c.unit)},z(s,[{key:"value",get:function(){return t.get(this).value},set:function(c){t.get(this).value=c}},{key:"unit",get:function(){return t.get(this).unit}}]),s}(),CSSKeywordValue:function(){function s(l){this.value=l}return s.prototype.toString=function(){return this.value.toString()},s}(),CSSMathSum:function(s){function l(c){return s.call(this,arguments,"sum","calc"," + ")||this}return H(l,s),l}(e),CSSMathProduct:function(s){function l(u){return s.call(this,arguments,"product","calc"," * ")||this}H(l,s);var c=l.prototype;return c.toSum=function(){return We.apply(void 0,[this].concat([].slice.call(arguments)))},c.type=function(){return t.get(this).values.map(function(u){return u.type()}).reduce(ut)},l}(e),CSSMathNegate:function(s){function l(c){return s.call(this,[arguments[0]],"negate","-")||this}return H(l,s),z(l,[{key:"value",get:function(){return t.get(this).values[0]}}]),l}(e),CSSMathInvert:function(s){function l(c){return s.call(this,[1,arguments[0]],"invert","calc"," / ")||this}return H(l,s),l.prototype.type=function(){return function(c){for(var u,m={},h=w(Oe);!(u=h()).done;){var p=u.value;m[p]=-1*c[p]}return m}(t.get(this).values[1].type())},z(l,[{key:"value",get:function(){return t.get(this).values[1]}}]),l}(e),CSSMathMax:function(s){function l(){return s.call(this,arguments,"max")||this}return H(l,s),l}(e),CSSMathMin:function(s){function l(){return s.call(this,arguments,"min")||this}return H(l,s),l}(e)};if(!window.CSS&&!Reflect.defineProperty(window,"CSS",{value:{}}))throw Error("Error installing CSSOM support");for(var f in window.CSSUnitValue||["number","percent","em","ex","px","cm","mm","in","pt","pc","Q","vw","vh","vmin","vmax","rems","ch","deg","rad","grad","turn","ms","s","Hz","kHz","dppx","dpi","dpcm","fr"].forEach(function(s){if(!Reflect.defineProperty(CSS,s,{value:function(l){return new CSSUnitValue(l,s)}}))throw Error("Error installing CSS."+s)}),o)if(!(f in window)&&!Reflect.defineProperty(window,f,{value:o[f]}))throw Error("Error installing CSSOM support for "+f)})();var He="block",M=new WeakMap,W=new WeakMap;function Fe(t){return t===document.scrollingElement?document:t}function F(t){de(t);var i=M.get(t).animations;if(i.length!==0)for(var e=t.currentTime,n=0;n<i.length;n++)i[n].tickAnimation(e)}function qe(t,i){if(!t)return null;var e=W.get(t).sourceMeasurements,n=getComputedStyle(t).writingMode=="horizontal-tb",r=e.scrollTop;return(i=="x"||i=="inline"&&n||i=="block"&&!n)&&(r=Math.abs(e.scrollLeft)),r}function de(t){if(t instanceof ne){var i=t.subject;i&&getComputedStyle(i).display!="none"?ee(t,be(i)):ee(t,null)}else(function(e){var n=M.get(e);n.anonymousSource&&ee(e,Be(n.anonymousSource,n.anonymousTarget))})(t)}function ve(t){var i=getComputedStyle(t);return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,writingMode:i.writingMode,direction:i.direction,scrollPaddingTop:i.scrollPaddingTop,scrollPaddingBottom:i.scrollPaddingBottom,scrollPaddingLeft:i.scrollPaddingLeft,scrollPaddingRight:i.scrollPaddingRight}}function ge(t,i){if(t&&i){for(var e=0,n=0,r=i,a=t.offsetParent;r&&r!=a;)n+=r.offsetLeft,e+=r.offsetTop,r=r.offsetParent;n-=t.offsetLeft+t.clientLeft,e-=t.offsetTop+t.clientTop;var o=getComputedStyle(i);return{top:e,left:n,offsetWidth:i.offsetWidth,offsetHeight:i.offsetHeight,fontSize:o.fontSize}}}function Se(t){var i=W.get(t);i.sourceMeasurements=ve(t);for(var e,n=w(i.timelineRefs);!(e=n()).done;){var r=e.value.deref();r instanceof ne&&(M.get(r).subjectMeasurements=ge(t,r.subject))}requestAnimationFrame(function(){for(var a,o=w(i.timelineRefs);!(a=o()).done;){var f=a.value.deref();f&&F(f)}})}function ee(t,i){var e=M.get(t).source;if(e!=i){if(e){var n=W.get(e);if(n){n.timelineRefs.delete(t);for(var r,a=w(Array.from(n.timelineRefs).filter(function(c){return c.deref()===void 0}));!(r=a()).done;)n.timelineRefs.delete(r.value);n.timelineRefs.size===0&&(n.disconnect(),W.delete(e))}}if(M.get(t).source=i,i){var o=W.get(i);if(!o){o={timelineRefs:new Set,sourceMeasurements:ve(i)},W.set(i,o);var f=new ResizeObserver(function(c){for(var u,m=w(c);!(u=m()).done;)Se(u.value.target)});f.observe(i);var s=new MutationObserver(function(c){for(var u,m=w(c);!(u=m()).done;)Se(u.value.target)});s.observe(i,{attributes:!0,attributeFilter:["style","class"]});var l=function(){o.sourceMeasurements.scrollLeft=i.scrollLeft,o.sourceMeasurements.scrollTop=i.scrollTop;for(var c,u=w(o.timelineRefs);!(c=u()).done;){var m=c.value.deref();m&&F(m)}};Fe(i).addEventListener("scroll",l),o.disconnect=function(){f.disconnect(),s.disconnect(),Fe(i).removeEventListener("scroll",l)}}o.timelineRefs.add(new WeakRef(t))}}}function ye(t,i){for(var e=M.get(t).animations,n=0;n<e.length;n++)e[n].animation==i&&e.splice(n,1)}function Te(t,i,e){for(var n=M.get(t).animations,r=0;r<n.length;r++)if(n[r].animation==i)return;n.push({animation:i,tickAnimation:e}),F(t)}var D=function(){function t(i){if(M.set(this,{source:null,axis:He,anonymousSource:i?i.anonymousSource:null,anonymousTarget:i?i.anonymousTarget:null,subject:null,inset:null,animations:[],subjectMeasurements:null}),ee(this,i&&i.source!==void 0?i.source:document.scrollingElement),i&&i.axis!==void 0&&i.axis!=He){if(!t.isValidAxis(i.axis))throw TypeError("Invalid axis");M.get(this).axis=i.axis}F(this)}return t.isValidAxis=function(i){return["block","inline","x","y"].includes(i)},z(t,[{key:"source",get:function(){return M.get(this).source},set:function(i){ee(this,i),F(this)}},{key:"axis",get:function(){return M.get(this).axis},set:function(i){if(!t.isValidAxis(i))throw TypeError("Invalid axis");M.get(this).axis=i,F(this)}},{key:"duration",get:function(){return CSS.percent(100)}},{key:"phase",get:function(){var i=this.source;if(!i)return"inactive";var e=getComputedStyle(i);return e.display=="none"?"inactive":i==document.scrollingElement||e.overflow!="visible"&&e.overflow!="clip"?"active":"inactive"}},{key:"currentTime",get:function(){var i=null,e=this.source;if(!e||this.phase=="inactive")return i;var n=getComputedStyle(e);if(n.display==="inline"||n.display==="none")return i;var r=this.axis,a=qe(e,r),o=function(f,s){var l=W.get(f).sourceMeasurements,c=getComputedStyle(f).writingMode=="horizontal-tb";return s==="block"?s=c?"y":"x":s==="inline"&&(s=c?"x":"y"),s==="y"?l.scrollHeight-l.clientHeight:s==="x"?l.scrollWidth-l.clientWidth:void 0}(e,r);return o>0?CSS.percent(100*a/o):CSS.percent(100)}},{key:"__polyfill",get:function(){return!0}}]),t}();function we(t,i){for(var e=t.parentElement;e!=null;){if(i(e))return e;e=e.parentElement}}function Be(t,i){return t=="root"?document.scrollingElement:be(i)}function ft(t){switch(getComputedStyle(t).display){case"block":case"inline-block":case"list-item":case"table":case"table-caption":case"flow-root":case"flex":case"grid":return!0}return!1}function Ke(t){var i=getComputedStyle(t);return i.transform!="none"||i.perspective!="none"||i.willChange=="transform"||i.willChange=="perspective"||i.filter!="none"||i.willChange=="filter"||i.backdropFilter!="none"}function mt(t){return getComputedStyle(t).position!="static"||Ke(t)}function ht(t){switch(getComputedStyle(t).position){case"static":case"relative":case"sticky":return we(t,ft);case"absolute":return we(t,mt);case"fixed":return we(t,Ke)}}function be(t){if(t){for(;t=ht(t);)switch(getComputedStyle(t)["overflow-x"]){case"auto":case"scroll":case"hidden":return t==document.body&&getComputedStyle(document.scrollingElement).overflow=="visible"?document.scrollingElement:t}return document.scrollingElement}}function te(t,i){var e=M.get(t),n=e.subjectMeasurements,r=W.get(e.source).sourceMeasurements;return t.phase==="inactive"?null:t instanceof ne?xe(i,r,n,e.axis,e.inset):null}function xe(t,i,e,n,r){var a=i.writingMode=="horizontal-tb",o=i.direction=="rtl"||i.writingMode=="vertical-rl",f=void 0,s=void 0,l={fontSize:e.fontSize};n=="x"||n=="inline"&&a||n=="block"&&!a?(f=e.offsetWidth,s=e.left,l.scrollPadding=[i.scrollPaddingLeft,i.scrollPaddingRight],o&&(s+=i.scrollWidth-i.clientWidth,l.scrollPadding=[i.scrollPaddingRight,i.scrollPaddingLeft]),l.containerSize=i.clientWidth):(f=e.offsetHeight,s=e.top,l.scrollPadding=[i.scrollPaddingTop,i.scrollPaddingBottom],l.containerSize=i.clientHeight);var c=function(A,x){if(!A)return{start:0,end:0};var j=[A.start,A.end].map(function(B,U){if(B==="auto")return x.scrollPadding[U]==="auto"?0:parseFloat(x.scrollPadding[U]);var R=N(B,{percentageReference:CSS.px(x.containerSize),fontSize:CSS.px(parseFloat(x.fontSize))});if(R instanceof CSSUnitValue&&R.unit==="px")return R.value;throw TypeError("Unsupported inset.")});return{start:j[0],end:j[1]}}(r,l),u=s-l.containerSize+c.end,m=s+f-c.start,h=u+f,p=m-f,v=Math.min(h,p),T=Math.max(h,p),y=void 0,S=void 0,I=f>l.containerSize;switch(t){case"cover":y=u,S=m;break;case"contain":y=v,S=T;break;case"entry":y=u,S=v;break;case"exit":y=T,S=m;break;case"entry-crossing":y=u,S=I?T:v;break;case"exit-crossing":y=I?v:T,S=m}return{start:y,end:S}}function Qe(t,i,e){return Ge(te(t,i),e,te(t,"cover"),t.subject)}function Ge(t,i,e,n){if(!t||!e)return 0;var r=getComputedStyle(n),a=N(i,{percentageReference:CSS.px(t.end-t.start),fontSize:CSS.px(parseFloat(r.fontSize))});if(!(a instanceof CSSUnitValue)||a.unit!=="px")throw new Error("Unsupported offset '"+a.toString()+"'");return(a.value+t.start-e.start)/(e.end-e.start)}var ne=function(t){function i(e){var n;n=t.call(this,e)||this;var r=M.get(ce(n));return r.subject=e&&e.subject?e.subject:void 0,e&&e.inset&&(r.inset=function(a){var o;if(!a)return{start:0,end:0};var f=a;if(typeof a=="string"&&(f=a.split(/(?<!\([^\)]*)\s(?![^\(]*\))/).map(function(m){if(m.trim()==="auto")return"auto";try{return CSSNumericValue.parse(m)}catch{throw TypeError("Invalid inset")}})),f.length===0||f.length>2)throw TypeError("Invalid inset");for(var s,l=w(f);!(s=l()).done;){var c=s.value;if(c!=="auto"){var u=c.type();if(u.length!==1&&u.percent!==1)throw TypeError("Invalid inset")}}return{start:f[0],end:(o=f[1])!=null?o:f[0]}}(e.inset)),r.subject&&new MutationObserver(function(){Se(r.source)}).observe(r.subject,{attributes:!0,attributeFilter:["class","style"]}),de(ce(n)),r.subjectMeasurements=ge(r.source,r.subject),F(ce(n)),n}return H(i,t),z(i,[{key:"source",get:function(){return de(this),M.get(this).source},set:function(e){throw new Error("Cannot set the source of a view timeline")}},{key:"subject",get:function(){return M.get(this).subject}},{key:"axis",get:function(){return M.get(this).axis}},{key:"currentTime",get:function(){var e=null,n=qe(this.source,this.axis);if(n==e)return e;var r=te(this,"cover");return r?CSS.percent((n-r.start)/(r.end-r.start)*100):e}},{key:"startOffset",get:function(){return CSS.px(te(this,"cover").start)}},{key:"endOffset",get:function(){return CSS.px(te(this,"cover").end)}}]),i}(D),pt=document.getAnimations,dt=window.Element.prototype.getAnimations,vt=window.Element.prototype.animate,Xe=window.Animation,oe=["entry","exit","cover","contain","entry-crossing","exit-crossing"],gt=new RegExp("("+oe.join("|")+")(?!-)"),X=function(){function t(){var e=this;this.state="pending",this.nativeResolve=this.nativeReject=null,this.promise=new Promise(function(n,r){e.nativeResolve=n,e.nativeReject=r})}var i=t.prototype;return i.resolve=function(e){this.state="resolved",this.nativeResolve(e)},i.reject=function(e){this.state="rejected",this.promise.catch(function(){}),this.nativeReject(e)},t}();function ie(t){t.readyPromise=new X,requestAnimationFrame(function(){var i,e;((i=(e=t.timeline)==null?void 0:e.currentTime)!=null?i:null)!==null&&(le(t),t.pendingTask!=="play"||t.startTime===null&&t.holdTime===null?t.pendingTask==="pause"&&Je(t):$e(t))})}function Ye(){return new DOMException("The user aborted a request","AbortError")}function Y(t,i){var e;if(i===null)return i;if(typeof i!="number")throw new DOMException("Unexpected value: "+i+".  Cannot convert to CssNumberish","InvalidStateError");var n=(e=t.rangeDuration)!=null?e:100,r=V(t);return CSS.percent(r?n*i/r:0)}function b(t,i){if(t.timeline){if(i===null)return i;if(i.unit==="percent"){var e,n=(e=t.rangeDuration)!=null?e:100,r=V(t);return i.value*r/n}throw new DOMException("CSSNumericValue must be a percentage for progress based animations.","NotSupportedError")}if(i==null||typeof i=="number")return i;var a=i.to("ms");if(a)return a.value;throw new DOMException("CSSNumericValue must be either a number or a time value for time based animations.","InvalidStateError")}function $e(t){var i=b(t,t.timeline.currentTime);if(t.holdTime!=null)P(t),t.animation.playbackRate==0?t.startTime=i:(t.startTime=i-t.holdTime/t.animation.playbackRate,t.holdTime=null);else if(t.startTime!==null&&t.pendingPlaybackRate!==null){var e=(i-t.startTime)*t.animation.playbackRate;P(t);var n=t.animation.playbackRate;n==0?(t.holdTime=null,t.startTime=i):t.startTime=i-e/n}t.readyPromise&&t.readyPromise.state=="pending"&&t.readyPromise.resolve(t.proxy),O(t,!1,!1),L(t),t.pendingTask=null}function Je(t){var i=b(t,t.timeline.currentTime);t.startTime!=null&&t.holdTime==null&&(t.holdTime=(i-t.startTime)*t.animation.playbackRate),P(t),t.startTime=null,t.readyPromise.resolve(t.proxy),O(t,!1,!1),L(t),t.pendingTask=null}function Ze(t){if(t.finishedPromise&&t.finishedPromise.state=="pending"&&t.proxy.playState=="finished"){t.finishedPromise.resolve(t.proxy),t.animation.pause();var i=new CustomEvent("finish",{detail:{currentTime:t.proxy.currentTime,timelineTime:t.proxy.timeline.currentTime}});Object.defineProperty(i,"currentTime",{get:function(){return this.detail.currentTime}}),Object.defineProperty(i,"timelineTime",{get:function(){return this.detail.timelineTime}}),requestAnimationFrame(function(){queueMicrotask(function(){t.animation.dispatchEvent(i)})})}}function q(t){return t.pendingPlaybackRate!==null?t.pendingPlaybackRate:t.animation.playbackRate}function P(t){t.pendingPlaybackRate!==null&&(t.animation.playbackRate=t.pendingPlaybackRate,t.pendingPlaybackRate=null)}function et(t){if(!t.timeline)return null;var i=b(t,t.timeline.currentTime);if(i===null||t.startTime===null)return null;var e=(i-t.startTime)*t.animation.playbackRate;return e==-0&&(e=0),e}function O(t,i,e){if(t.timeline){var n=i?b(t,t.proxy.currentTime):et(t);if(n&&t.startTime!=null&&!t.proxy.pending){var r=q(t),a=V(t),o=t.previousCurrentTime;r>0&&n>=a&&t.previousCurrentTime!=null?((o===null||o<a)&&(o=a),t.holdTime=i?n:o):r<0&&n<=0?((o==null||o>0)&&(o=0),t.holdTime=i?n:o):r!=0&&(i&&t.holdTime!==null&&(t.startTime=function(f,s){if(!f.timeline)return null;var l=b(f,f.timeline.currentTime);return l==null?null:l-s/f.animation.playbackRate}(t,t.holdTime)),t.holdTime=null)}L(t),t.previousCurrentTime=b(t,t.proxy.currentTime),t.proxy.playState=="finished"?(t.finishedPromise||(t.finishedPromise=new X),t.finishedPromise.state=="pending"&&(e?Ze(t):Promise.resolve().then(function(){Ze(t)}))):(t.finishedPromise&&t.finishedPromise.state=="resolved"&&(t.finishedPromise=new X),t.animation.playState!="paused"&&t.animation.pause())}}function V(t){var i=function(e){var n=e.proxy.effect.getTiming();return e.normalizedTiming||n}(t);return Math.max(0,i.delay+i.endDelay+i.iterations*i.duration)}function L(t){if(t.timeline)if(t.startTime!==null){var i=t.timeline.currentTime;if(i==null)return;Ee(t,(b(t,i)-t.startTime)*t.animation.playbackRate)}else t.holdTime!==null&&Ee(t,t.holdTime)}function Ee(t,i){var e=t.timeline,n=t.animation.playbackRate;t.animation.currentTime=i+(e.currentTime&&e.currentTime.value==(n<0?0:100)?n<0?.001:-.001:0)}function ke(t,i){if(t.timeline){var e=t.proxy.playState=="paused"&&t.proxy.pending,n=!1,r=b(t,t.proxy.currentTime);q(t)==0&&r==null&&(t.holdTime=0),r==null&&(t.autoAlignStartTime=!0),(t.proxy.playState==="finished"||e)&&(t.holdTime=null,t.startTime=null,t.autoAlignStartTime=!0),t.holdTime&&(t.startTime=null),t.pendingTask&&(t.pendingTask=null,n=!0),(t.holdTime!==null||t.autoAlignStartTime||e||t.pendingPlaybackRate!==null)&&(t.readyPromise&&!n&&(t.readyPromise=null),L(t),t.readyPromise||ie(t),t.pendingTask="play",Te(t.timeline,t.animation,Me.bind(t.proxy)),O(t,!1,!1))}}function Me(t){var i=d.get(this);if(i)if(t!=null){le(i),i.pendingTask&&requestAnimationFrame(function(){i.pendingTask!=="play"||i.startTime===null&&i.holdTime===null?i.pendingTask==="pause"&&Je(i):$e(i)});var e=this.playState;if(e=="running"||e=="finished"){var n=b(i,t);Ee(i,(n-b(i,this.startTime))*this.playbackRate),e=="finished"&&q(i)!=0&&(i.holdTime=null),O(i,!1,!1)}}else i.proxy.playState!=="paused"&&i.animation.playState!="idle"&&i.animation.cancel()}function tt(t){t.specifiedTiming=null}var d=new WeakMap;window.addEventListener("pagehide",function(t){d=new WeakMap},!1);var nt=new WeakMap;function le(t){if(t.autoAlignStartTime&&t.timeline&&t.timeline.currentTime&&t.proxy.playState!=="idle"&&(t.proxy.playState!=="paused"||t.holdTime===null)){var i=t.rangeDuration,e=CSS.percent(100*function(a){if(!(a.timeline instanceof ViewTimeline))return 0;var o=a.animationRange.start;return o==="normal"&&(o={rangeName:"cover",offset:CSS.percent(0)}),Qe(a.timeline,o.rangeName,o.offset)}(t)),n=CSS.percent(100*(1-function(a){if(!(a.timeline instanceof ViewTimeline))return 0;var o=a.animationRange.end;return o==="normal"&&(o={rangeName:"cover",offset:CSS.percent(100)}),1-Qe(a.timeline,o.rangeName,o.offset)}(t)));t.rangeDuration=n.value-e.value;var r=q(t);t.startTime=b(t,r>=0?e:n),t.holdTime=null,t.rangeDuration!==i&&tt(t)}}var se=function(){function t(e,n,r){r===void 0&&(r={});var a=e instanceof Xe?e:new Xe(e,f),o=n instanceof D,f=o?void 0:n;nt.set(a,this),d.set(this,{animation:a,timeline:o?n:void 0,playState:o?"idle":null,readyPromise:null,finishedPromise:null,startTime:null,holdTime:null,rangeDuration:null,previousCurrentTime:null,autoAlignStartTime:!1,pendingPlaybackRate:null,pendingTask:null,specifiedTiming:null,normalizedTiming:null,effect:null,animationRange:n instanceof ViewTimeline?St(r["animation-range"]):null,proxy:this})}var i=t.prototype;return i.finish=function(){var e=d.get(this);if(e.timeline){var n=q(e),r=V(e);if(n==0)throw new DOMException("Cannot finish Animation with a playbackRate of 0.","InvalidStateError");if(n>0&&r==1/0)throw new DOMException("Cannot finish Animation with an infinite target effect end.","InvalidStateError");P(e);var a=n<0?0:r;this.currentTime=Y(e,a);var o=b(e,e.timeline.currentTime);e.startTime===null&&o!==null&&(e.startTime=o-a/e.animation.playbackRate),e.pendingTask=="pause"&&e.startTime!==null&&(e.holdTime=null,e.pendingTask=null,e.readyPromise.resolve(this)),e.pendingTask=="play"&&e.startTime!==null&&(e.pendingTask=null,e.readyPromise.resolve(this)),O(e,!0,!0)}else e.animation.finish()},i.play=function(){var e=d.get(this);e.timeline?ke(e):e.animation.play()},i.pause=function(){var e=d.get(this);e.timeline?this.playState!="paused"&&(e.animation.currentTime===null&&(e.autoAlignStartTime=!0),e.pendingTask=="play"?e.pendingTask=null:e.readyPromise=null,e.readyPromise||ie(e),e.pendingTask="pause",Te(e.timeline,e.animation,Me.bind(e.proxy))):e.animation.pause()},i.reverse=function(){var e=d.get(this),n=q(e),r=b(e,this.currentTime),a=V(e)==1/0,o=n!=0&&(n<0||r>0||!a);if(!e.timeline||!o)return o&&(e.pendingPlaybackRate=-q(e)),void e.animation.reverse();if(e.timeline.phase=="inactive")throw new DOMException("Cannot reverse an animation with no active timeline","InvalidStateError");this.updatePlaybackRate(-n),ke(e)},i.updatePlaybackRate=function(e){var n=d.get(this);if(n.pendingPlaybackRate=e,n.timeline){if(!n.readyPromise||n.readyPromise.state!="pending")switch(this.playState){case"idle":case"paused":P(n);break;case"finished":var r=b(n,n.timeline.currentTime),a=r!==null?(r-n.startTime)*n.animation.playbackRate:null;n.startTime=e==0?r:r!=null&&a!=null?(r-a)/e:null,P(n),O(n,!1,!1),L(n);break;default:ke(n)}}else n.animation.updatePlaybackRate(e)},i.persist=function(){d.get(this).animation.persist()},i.cancel=function(){var e=d.get(this);e.timeline?(this.playState!="idle"&&(function(n){n.pendingTask&&(n.pendingTask=null,P(n),n.readyPromise.reject(Ye()),ie(n),n.readyPromise.resolve(n.proxy))}(e),e.finishedPromise&&e.finishedPromise.state=="pending"&&e.finishedPromise.reject(Ye()),e.finishedPromise=new X,e.animation.cancel()),e.startTime=null,e.holdTime=null,ye(e.timeline,e.animation)):e.animation.cancel()},i.addEventListener=function(e,n,r){d.get(this).animation.addEventListener(e,n,r)},i.removeEventListener=function(e,n,r){d.get(this).animation.removeEventListener(e,n,r)},i.dispatchEvent=function(e){d.get(this).animation.dispatchEvent(e)},z(t,[{key:"effect",get:function(){var e=d.get(this);return e.timeline?(e.effect||(e.effect=function(n){var r=n.animation.effect,a=r.updateTiming,o={apply:function(c){r.getTiming();var u=c.apply(r);if(n.timeline){var m,h=(m=n.duration)!=null?m:100;u.localTime=Y(n,u.localTime),u.endTime=Y(n,u.endTime),u.activeDuration=Y(n,u.activeDuration);var p=V(n);u.duration=p?CSS.percent(h*(u.iterations?(p-u.delay-u.endDelay)/u.iterations:0)/p):CSS.percent(0),n.timeline.currentTime===void 0&&(u.localTime=null)}return u}},f={apply:function(c,u){if(n.specifiedTiming)return n.specifiedTiming;n.specifiedTiming=c.apply(r);var m,h=Object.assign({},n.specifiedTiming);return(h.duration===null||h.duration==="auto"||n.autoDurationEffect)&&n.timeline&&(n.autoDurationEffect=!0,h.delay=0,h.endDelay=0,m=h.iterations?1e5:0,h.duration=h.iterations?(m-h.delay-h.endDelay)/h.iterations:0,h.duration<0&&(h.duration=0,h.endDelay=m-h.delay),a.apply(r,[h])),n.normalizedTiming=h,n.specifiedTiming}},s={apply:function(c,u,m){if(m&&m.length){if(n.timeline){var h=m[0],p=h.duration;if(p===1/0)throw TypeError("Effect duration cannot be Infinity when used with Scroll Timelines");if(h.iterations===1/0)throw TypeError("Effect iterations cannot be Infinity when used with Scroll Timelines");p!==void 0&&p!=="auto"&&(n.autoDurationEffect=null)}n.specifiedTiming&&c.apply(r,[n.specifiedTiming]),c.apply(r,m),tt(n)}}},l=new Proxy(r,{get:function(c,u){var m=c[u];return typeof m=="function"?m.bind(r):m},set:function(c,u,m){return c[u]=m,!0}});return l.getComputedTiming=new Proxy(r.getComputedTiming,o),l.getTiming=new Proxy(r.getTiming,f),l.updateTiming=new Proxy(r.updateTiming,s),l}(e)),e.effect):e.animation.effect},set:function(e){var n=d.get(this);n.animation.effect=e,n.effect=null,n.autoDurationEffect=null}},{key:"timeline",get:function(){var e=d.get(this);return e.timeline||e.animation.timeline},set:function(e){var n=d.get(this),r=this.timeline;if(r!=e){var a,o=this.playState,f=this.currentTime,s=V(n);a=f===null?null:s===0?0:b(n,f)/s;var l=r instanceof D,c=e instanceof D,u=this.pending;if(l&&ye(n.timeline,n.animation),c)return n.timeline=e,P(n),n.autoAlignStartTime=!0,n.startTime=null,n.holdTime=null,o!=="running"&&o!=="finished"||(n.readyPromise&&n.readyPromise.state!=="resolved"||ie(n),n.pendingTask="play",Te(n.timeline,n.animation,Me.bind(this))),o==="paused"&&a!==null&&(n.holdTime=a*s),u&&(n.readyPromise&&n.readyPromise.state!="resolved"||ie(n),n.pendingTask=o=="paused"?"pause":"play"),n.startTime!==null&&(n.holdTime=null),void O(n,!1,!1);if(n.animation.timeline!=e)throw TypeError("Unsupported timeline: "+e);if(ye(n.timeline,n.animation),n.timeline=null,l)switch(f!==null&&(n.animation.currentTime=a*V(n)),o){case"paused":n.animation.pause();break;case"running":case"finished":n.animation.play()}}}},{key:"startTime",get:function(){var e=d.get(this);return e.timeline?Y(e,e.startTime):e.animation.startTime},set:function(e){var n=d.get(this);if(e=b(n,e),n.timeline){n.autoAlignStartTime=!1,b(n,n.timeline.currentTime)==null&&n.startTime!=null&&(n.holdTime=null,L(n));var r=b(n,this.currentTime);P(n),n.startTime=e,n.holdTime=n.startTime!==null&&n.animation.playbackRate!=0?null:r,n.pendingTask&&(n.pendingTask=null,n.readyPromise.resolve(this)),O(n,!0,!1),L(n)}else n.animation.startTime=e}},{key:"currentTime",get:function(){var e=d.get(this);return e.timeline?Y(e,e.holdTime!=null?e.holdTime:et(e)):e.animation.currentTime},set:function(e){var n=d.get(this);n.timeline?(function(r,a){if(a==null&&r.currentTime!==null)throw new TypeError;a=b(r,a),r.autoAlignStartTime=!1,r.holdTime!==null||r.startTime===null||r.timeline.phase==="inactive"||r.animation.playbackRate===0?r.holdTime=a:r.startTime=b(r,r.timeline.currentTime)-a/r.animation.playbackRate,r.timeline.phase==="inactive"&&(r.startTime=null),r.previousCurrentTime=null}(n,e),n.pendingTask=="pause"&&(n.holdTime=b(n,e),P(n),n.startTime=null,n.pendingTask=null,n.readyPromise.resolve(this)),O(n,!0,!1)):n.animation.currentTime=e}},{key:"playbackRate",get:function(){return d.get(this).animation.playbackRate},set:function(e){var n=d.get(this);if(n.timeline){n.pendingPlaybackRate=null;var r=this.currentTime;n.animation.playbackRate=e,r!==null&&(this.currentTime=r)}else n.animation.playbackRate=e}},{key:"playState",get:function(){var e=d.get(this);if(!e.timeline)return e.animation.playState;var n=b(e,this.currentTime);return n===null&&e.startTime===null&&e.pendingTask==null?"idle":e.pendingTask=="pause"||e.startTime===null&&e.pendingTask!="play"?"paused":n!=null&&(e.animation.playbackRate>0&&n>=V(e)||e.animation.playbackRate<0&&n<=0)?"finished":"running"}},{key:"rangeStart",get:function(){var e;return(e=d.get(this).animationRange.start)!=null?e:"normal"},set:function(e){var n=d.get(this);if(!n.timeline)return n.animation.rangeStart=e;n.timeline instanceof ViewTimeline&&(n.animationRange.start=ue(e,"start"),le(n),L(n))}},{key:"rangeEnd",get:function(){var e;return(e=d.get(this).animationRange.end)!=null?e:"normal"},set:function(e){var n=d.get(this);if(!n.timeline)return n.animation.rangeEnd=e;n.timeline instanceof ViewTimeline&&(n.animationRange.end=ue(e,"end"),le(n),L(n))}},{key:"replaceState",get:function(){return d.get(this).animation.pending}},{key:"pending",get:function(){var e=d.get(this);return e.timeline?!!e.readyPromise&&e.readyPromise.state=="pending":e.animation.pending}},{key:"id",get:function(){return d.get(this).animation.id},set:function(e){d.get(this).animation.id=e}},{key:"onfinish",get:function(){return d.get(this).animation.onfinish},set:function(e){d.get(this).animation.onfinish=e}},{key:"oncancel",get:function(){return d.get(this).animation.oncancel},set:function(e){d.get(this).animation.oncancel=e}},{key:"onremove",get:function(){return d.get(this).animation.onremove},set:function(e){d.get(this).animation.onremove=e}},{key:"finished",get:function(){var e=d.get(this);return e.timeline?(e.finishedPromise||(e.finishedPromise=new X),e.finishedPromise.promise):e.animation.finished}},{key:"ready",get:function(){var e=d.get(this);return e.timeline?(e.readyPromise||(e.readyPromise=new X,e.readyPromise.resolve(this)),e.readyPromise.promise):e.animation.ready}}]),t}();function ue(t,i){if(!t||t==="normal")return"normal";var e="cover",n=i==="start"?CSS.percent(0):CSS.percent(100);if(t instanceof Object)t.rangeName!==void 0&&(e=t.rangeName),t.offset!==void 0&&(n=t.offset);else{var r=t.split(gt).map(function(a){return a.trim()}).filter(Boolean);r.length===1?oe.includes(r[0])?e=r[0]:n=CSSNumericValue.parse(r[0]):r.length===2&&(e=r[0],n=CSSNumericValue.parse(r[1]))}if(!oe.includes(e))throw TypeError("Invalid range name");return{rangeName:e,offset:n}}function St(t){if(!t)return{start:"normal",end:"normal"};var i={start:{rangeName:"cover",offset:CSS.percent(0)},end:{rangeName:"cover",offset:CSS.percent(100)}},e=t.split(" "),n=[],r=[];if(e.forEach(function(a){a.endsWith("%")?r.push(parseFloat(a)):n.push(a)}),n.length>2||r.length>2||r.length==1)throw TypeError("Invalid time range or unsupported time range format.");return n.length&&(i.start.rangeName=n[0],i.end.rangeName=n.length>1?n[1]:n[0]),r.length>1&&(i.start.offset=CSS.percent(r[0]),i.end.offset=CSS.percent(r[1])),i}function yt(t,i){var e=i.timeline;e instanceof D&&delete i.timeline;var n=vt.apply(this,[t,i]),r=new se(n,e);return e instanceof D&&(n.pause(),e instanceof ViewTimeline&&(d.get(r).animationRange={start:ue(i.rangeStart,"start"),end:ue(i.rangeEnd,"end")}),r.play()),r}function it(t){for(var i=0;i<t.length;++i){var e=nt.get(t[i]);e&&(t[i]=e)}return t}function Tt(t){return it(dt.apply(this,[t]))}function wt(t){return it(pt.apply(this,[t]))}var k={IDENTIFIER:/[\w\\\@_-]+/g,WHITE_SPACE:/\s*/g,NUMBER:/^[0-9]+/,TIME:/^[0-9]+(s|ms)/,SCROLL_TIMELINE:/scroll-timeline\s*:([^;}]+)/,SCROLL_TIMELINE_NAME:/scroll-timeline-name\s*:([^;}]+)/,SCROLL_TIMELINE_AXIS:/scroll-timeline-axis\s*:([^;}]+)/,VIEW_TIMELINE:/view-timeline\s*:([^;}]+)/,VIEW_TIMELINE_NAME:/view-timeline-name\s*:([^;}]+)/,VIEW_TIMELINE_AXIS:/view-timeline-axis\s*:([^;}]+)/,VIEW_TIMELINE_INSET:/view-timeline-inset\s*:([^;}]+)/,ANIMATION_TIMELINE:/animation-timeline\s*:([^;}]+)/,ANIMATION_TIME_RANGE:/animation-range\s*:([^;}]+)/,ANIMATION_NAME:/animation-name\s*:([^;}]+)/,ANIMATION:/animation\s*:([^;}]+)/,ANONYMOUS_SCROLL_TIMELINE:/scroll\(([^)]*)\)/,ANONYMOUS_VIEW_TIMELINE:/view\(([^)]*)\)/},$=["block","inline","x","y"],bt=["nearest","root"],xt=function(){function t(){this.cssRulesWithTimelineName=[],this.nextAnonymousTimelineNameIndex=0,this.anonymousScrollTimelineOptions=new Map,this.anonymousViewTimelineOptions=new Map,this.sourceSelectorToScrollTimeline=[],this.subjectSelectorToViewTimeline=[],this.keyframeNamesSelectors=new Map}var i=t.prototype;return i.transpileStyleSheet=function(e,n,r){for(var a={sheetSrc:e,index:0,name:r};a.index<a.sheetSrc.length&&(this.eatWhitespace(a),!(a.index>=a.sheetSrc.length));)if(this.lookAhead("/*",a))for(;this.lookAhead("/*",a);)this.eatComment(a),this.eatWhitespace(a);else{var o=this.parseQualifiedRule(a);o&&(n?this.parseKeyframesAndSaveNameMapping(o,a):this.handleScrollTimelineProps(o,a))}return a.sheetSrc},i.getAnimationTimelineOptions=function(e,n){for(var r=this.cssRulesWithTimelineName.length-1;r>=0;r--){var a=this.cssRulesWithTimelineName[r];try{if(n.matches(a.selector)&&(!a["animation-name"]||a["animation-name"]==e))return{"animation-timeline":a["animation-timeline"],"animation-range":a["animation-range"]}}catch{}}return null},i.getAnonymousScrollTimelineOptions=function(e,n){var r=this.anonymousScrollTimelineOptions.get(e);return r?{anonymousSource:r.source,anonymousTarget:n,source:Be(r.source,n),axis:r.axis?r.axis:"block"}:null},i.getScrollTimelineOptions=function(e,n){var r=this.getAnonymousScrollTimelineOptions(e,n);if(r)return r;for(var a=this.sourceSelectorToScrollTimeline.length-1;a>=0;a--){var o=this.sourceSelectorToScrollTimeline[a];if(o.name==e){var f=this.findPreviousSiblingOrAncestorMatchingSelector(n,o.selector);if(f)return G({source:f},o.axis?{axis:o.axis}:{})}}return null},i.findPreviousSiblingOrAncestorMatchingSelector=function(e,n){for(var r=e;r;){if(r.matches(n))return r;r=r.previousElementSibling||r.parentElement}return null},i.getAnonymousViewTimelineOptions=function(e,n){var r=this.anonymousViewTimelineOptions.get(e);return r?{subject:n,axis:r.axis?r.axis:"block",inset:r.inset?r.inset:"auto"}:null},i.getViewTimelineOptions=function(e,n){var r=this.getAnonymousViewTimelineOptions(e,n);if(r)return r;for(var a=this.subjectSelectorToViewTimeline.length-1;a>=0;a--){var o=this.subjectSelectorToViewTimeline[a];if(o.name==e){var f=this.findPreviousSiblingOrAncestorMatchingSelector(n,o.selector);if(f)return{subject:f,axis:o.axis,inset:o.inset}}}return null},i.handleScrollTimelineProps=function(e,n){var r=this;if(!e.selector.includes("@keyframes")){var a=e.block.contents.includes("animation-name:"),o=e.block.contents.includes("animation-timeline:"),f=e.block.contents.includes("animation:");if(this.saveSourceSelectorToScrollTimeline(e),this.saveSubjectSelectorToViewTimeline(e),o||a||f){var s=[],l=[],c=!1;o&&(s=this.extractScrollTimelineNames(e.block.contents)),a&&(l=this.extractMatches(e.block.contents,k.ANIMATION_NAME)),o&&a||(f&&this.extractMatches(e.block.contents,k.ANIMATION).forEach(function(u){var m=r.extractAnimationName(u);m&&o&&l.push(m),o&&(r.hasDuration(u)||(r.hasAutoDuration(u)&&(e.block.contents=e.block.contents.replace("auto","    ")),e.block.contents=e.block.contents.replace(u," 1s "+u),c=!0))}),c&&this.replacePart(e.block.startIndex,e.block.endIndex,e.block.contents,n)),this.saveRelationInList(e,s,l)}}},i.saveSourceSelectorToScrollTimeline=function(e){var n,r=e.block.contents.includes("scroll-timeline:"),a=e.block.contents.includes("scroll-timeline-name:"),o=e.block.contents.includes("scroll-timeline-axis:");if(r||a){var f=[];if(r)for(var s,l=w(this.extractMatches(e.block.contents,k.SCROLL_TIMELINE));!(s=l()).done;){var c=this.split(s.value),u={selector:e.selector,name:""};c.length==1?u.name=c[0]:c.length==2&&($.includes(c[0])?(u.axis=c[0],u.name=c[1]):(u.axis=c[1],u.name=c[0])),f.push(u)}if(a)for(var m=this.extractMatches(e.block.contents,k.SCROLL_TIMELINE_NAME),h=0;h<m.length;h++)h<f.length?f[h].name=m[h]:f.push({selector:e.selector,name:m[h]});var p=[];if(o){var v=this.extractMatches(e.block.contents,k.SCROLL_TIMELINE_AXIS);if((p=v.filter(function(y){return $.includes(y)})).length!=v.length)throw new Error("Invalid axis")}for(var T=0;T<f.length;T++)p.length&&(f[T].axis=p[T%f.length]);(n=this.sourceSelectorToScrollTimeline).push.apply(n,f)}},i.saveSubjectSelectorToViewTimeline=function(e){var n,r=e.block.contents.includes("view-timeline:"),a=e.block.contents.includes("view-timeline-name:"),o=e.block.contents.includes("view-timeline-axis:"),f=e.block.contents.includes("view-timeline-inset:");if(r||a){var s=[];if(r)for(var l,c=w(this.extractMatches(e.block.contents,k.VIEW_TIMELINE));!(l=c()).done;){var u=this.split(l.value),m={selector:e.selector,name:"",inset:null};u.length==1?m.name=u[0]:u.length==2&&($.includes(u[0])?(m.axis=u[0],m.name=u[1]):(m.axis=u[1],m.name=u[0])),s.push(m)}if(a)for(var h=this.extractMatches(e.block.contents,k.VIEW_TIMELINE_NAME),p=0;p<h.length;p++)p<s.length?s[p].name=h[p]:s.push({selector:e.selector,name:h[p],inset:null});var v=[],T=[];if(f&&(v=this.extractMatches(e.block.contents,k.VIEW_TIMELINE_INSET)),o){var y=this.extractMatches(e.block.contents,k.VIEW_TIMELINE_AXIS);if((T=y.filter(function(I){return $.includes(I)})).length!=y.length)throw new Error("Invalid axis")}for(var S=0;S<s.length;S++)v.length&&(s[S].inset=v[S%s.length]),T.length&&(s[S].axis=T[S%s.length]);(n=this.subjectSelectorToViewTimeline).push.apply(n,s)}},i.hasDuration=function(e){return e.split(" ").filter(function(n){return k.TIME.exec(n)}).length>=1},i.hasAutoDuration=function(e){return e.split(" ").filter(function(n){return n==="auto"}).length>=1},i.saveRelationInList=function(e,n,r){var a=[];e.block.contents.includes("animation-range:")&&(a=this.extractMatches(e.block.contents,k.ANIMATION_TIME_RANGE));for(var o=Math.max(n.length,r.length,a.length),f=0;f<o;f++)this.cssRulesWithTimelineName.push(G({selector:e.selector,"animation-timeline":n[f%n.length]},r.length?{"animation-name":r[f%r.length]}:{},a.length?{"animation-range":a[f%a.length]}:{}))},i.extractScrollTimelineNames=function(e){var n=this,r=k.ANIMATION_TIMELINE.exec(e)[1].trim(),a=[];return r.split(",").map(function(o){return o.trim()}).forEach(function(o){if(function(s){return(s.startsWith("scroll")||s.startsWith("view"))&&s.includes("(")}(o)){var f=n.saveAnonymousTimelineName(o);a.push(f)}else a.push(o)}),a},i.saveAnonymousTimelineName=function(e){var n=":t"+this.nextAnonymousTimelineNameIndex++;return e.startsWith("scroll(")?this.anonymousScrollTimelineOptions.set(n,this.parseAnonymousScrollTimeline(e)):this.anonymousViewTimelineOptions.set(n,this.parseAnonymousViewTimeline(e)),n},i.parseAnonymousScrollTimeline=function(e){var n=k.ANONYMOUS_SCROLL_TIMELINE.exec(e);if(!n)return null;var r={};return n[1].split(" ").forEach(function(a){$.includes(a)?r.axis=a:bt.includes(a)&&(r.source=a)}),r},i.parseAnonymousViewTimeline=function(e){var n=k.ANONYMOUS_VIEW_TIMELINE.exec(e);if(!n)return null;var r={};return n[1].split(" ").forEach(function(a){$.includes(a)?r.axis=a:r.inset=r.inset?r.inset+" "+a:a}),r},i.extractAnimationName=function(e){return this.findMatchingEntryInContainer(e,this.keyframeNamesSelectors)},i.findMatchingEntryInContainer=function(e,n){var r=e.split(" ").filter(function(a){return n.has(a)});return r?r[0]:null},i.parseIdentifier=function(e){k.IDENTIFIER.lastIndex=e.index;var n=k.IDENTIFIER.exec(e.sheetSrc);if(!n)throw this.parseError(e,"Expected an identifier");return e.index+=n[0].length,n[0]},i.parseKeyframesAndSaveNameMapping=function(e,n){var r=this;if(e.selector.startsWith("@keyframes")){var a=this.replaceKeyframesAndGetMapping(e,n);e.selector.split(" ").forEach(function(o,f){f>0&&r.keyframeNamesSelectors.set(o,a)})}},i.replaceKeyframesAndGetMapping=function(e,n){var r=e.block.contents,a=function(u){for(var m=0,h=-1,p=[],v=0;v<u.length;v++)u[v]=="{"?m++:u[v]=="}"&&m--,m==1&&u[v]!="{"&&u[v]!="}"&&h==-1&&(h=v),m==2&&u[v]=="{"&&(p.push({start:h,end:v}),h=-1);return p}(r);if(a.length==0)return new Map;var o=new Map,f=!1,s=[];s.push(r.substring(0,a[0].start));for(var l=function(u){var m=r.substring(a[u].start,a[u].end),h=[];m.split(",").forEach(function(p){var v,T=p.split(" ").map(function(S){return S.trim()}).filter(function(S){return S!=""}).join(" "),y=o.size;o.set(y,T),h.push(y+"%"),v=T,oe.some(function(S){return v.startsWith(S)})&&(f=!0)}),s.push(h.join(",")),s.push(u==a.length-1?r.substring(a[u].end):r.substring(a[u].end,a[u+1].start))},c=0;c<a.length;c++)l(c);return f?(e.block.contents=s.join(""),this.replacePart(e.block.startIndex,e.block.endIndex,e.block.contents,n),o):new Map},i.parseQualifiedRule=function(e){var n=e.index,r=this.parseSelector(e).trim();if(r)return{selector:r,block:this.eatBlock(e),startIndex:n,endIndex:e.index}},i.removeEnclosingDoubleQuotes=function(e){return e.substring(e[0]=='"'?1:0,e[e.length-1]=='"'?e.length-1:e.length)},i.assertString=function(e,n){if(e.sheetSrc.substr(e.index,n.length)!=n)throw this.parseError(e,"Did not find expected sequence "+n);e.index+=n.length},i.replacePart=function(e,n,r,a){a.sheetSrc=a.sheetSrc.slice(0,e)+r+a.sheetSrc.slice(n),a.index>=n&&(a.index=e+r.length+(a.index-n))},i.eatComment=function(e){this.assertString(e,"/*"),this.eatUntil("*/",e,!0),this.assertString(e,"*/")},i.eatBlock=function(e){var n=e.index;this.assertString(e,"{");for(var r=1;r!=0;)this.lookAhead("/*",e)?this.eatComment(e):(e.sheetSrc[e.index]==="{"?r++:e.sheetSrc[e.index]==="}"&&r--,this.advance(e));var a=e.index;return{startIndex:n,endIndex:a,contents:e.sheetSrc.slice(n,a)}},i.advance=function(e){if(e.index++,e.index>e.sheetSrc.length)throw this.parseError(e,"Advanced beyond the end")},i.parseError=function(e,n){return Error("("+(e.name?e.name:"<anonymous file>")+"): "+n)},i.eatUntil=function(e,n,r){r===void 0&&(r=!1);for(var a=n.index;!this.lookAhead(e,n);)this.advance(n);return r&&(n.sheetSrc=n.sheetSrc.slice(0,a)+" ".repeat(n.index-a)+n.sheetSrc.slice(n.index)),n.sheetSrc.slice(a,n.index)},i.parseSelector=function(e){var n=e.index;if(this.eatUntil("{",e),n===e.index)throw Error("Empty selector");return e.sheetSrc.slice(n,e.index)},i.eatWhitespace=function(e){k.WHITE_SPACE.lastIndex=e.index;var n=k.WHITE_SPACE.exec(e.sheetSrc);n&&(e.index+=n[0].length)},i.lookAhead=function(e,n){return n.sheetSrc.substr(n.index,e.length)==e},i.peek=function(e){return e.sheetSrc[e.index]},i.extractMatches=function(e,n,r){return r===void 0&&(r=","),n.exec(e)[1].trim().split(r).map(function(a){return a.trim()})},i.split=function(e){return e.split(" ").map(function(n){return n.trim()}).filter(function(n){return n!=""})},t}(),J=new xt;function Et(t,i,e,n,r,a){var o=ve(i),f=ge(i,e);return Ge(xe(t,o,f,n,r),a,xe("cover",o,f,n,r))}(function(){if(!function(){if(CSS.supports("animation-timeline: --works"))return!0;(function(){var t=new MutationObserver(function(e){for(var n,r=w(e);!(n=r()).done;)for(var a,o=w(n.value.addedNodes);!(a=o()).done;){var f=a.value;f instanceof HTMLStyleElement&&i(f)}});function i(e){if(e.innerHTML.trim().length!==0){var n=J.transpileStyleSheet(e.innerHTML,!0);n=J.transpileStyleSheet(n,!1),e.innerHTML=n}}t.observe(document.documentElement,{childList:!0,subtree:!0}),document.querySelectorAll("style").forEach(function(e){return i(e)}),document.querySelectorAll("link").forEach(function(e){})})(),window.addEventListener("animationstart",function(t){t.target.getAnimations().filter(function(i){return i.animationName===t.animationName}).forEach(function(i){var e=function(r,a,o){var f=J.getAnimationTimelineOptions(a,o);if(!f)return null;var s=f["animation-timeline"];if(!s)return null;var l=J.getScrollTimelineOptions(s,o)||J.getViewTimelineOptions(s,o);return l?(l.subject&&function(c,u){var m=be(u.subject),h=u.axis||u.axis,p=J.keyframeNamesSelectors.get(c.animationName);if(p&&p.size){var v=[];c.effect.getKeyframes().forEach(function(y){var S=function(I,A){for(var x,j=null,B=w(I);!(x=B()).done;){var U=x.value,R=U[1];if(U[0]==100*A.offset){if(R=="from")j=0;else if(R=="to")j=100;else{var K=R.split(" ");j=K.length==1?parseFloat(K[0]):100*Et(K[0],m,u.subject,h,u.inset,CSS.percent(parseFloat(K[1])))}break}}return j}(p,y);S!==null&&S>=0&&S<=100&&(y.offset=S/100,v.push(y))});var T=v.sort(function(y,S){return y.offset<S.offset?-1:y.affset>S.offset?1:0});c.effect.setKeyframes(T)}}(r,l),{timeline:l.source?new D(l):new ne(l),animOptions:f}):null}(i,i.animationName,t.target);if(e)if(!e.timeline||i instanceof se)i.timeline=e.timeline;else{var n=new se(i,e.timeline,e.animOptions);i.pause(),n.play()}})})}()){if([].concat(document.styleSheets).filter(function(t){return t.href!==null}).length&&console.warn("Non-Inline StyleSheets detected: ScrollTimeline polyfill currently only supports inline styles within style tags"),!Reflect.defineProperty(window,"ScrollTimeline",{value:D}))throw Error("Error installing ScrollTimeline polyfill: could not attach ScrollTimeline to window");if(!Reflect.defineProperty(window,"ViewTimeline",{value:ne}))throw Error("Error installing ViewTimeline polyfill: could not attach ViewTimeline to window");if(!Reflect.defineProperty(Element.prototype,"animate",{value:yt}))throw Error("Error installing ScrollTimeline polyfill: could not attach WAAPI's animate to DOM Element");if(!Reflect.defineProperty(window,"Animation",{value:se}))throw Error("Error installing Animation constructor.");if(!Reflect.defineProperty(Element.prototype,"getAnimations",{value:Tt}))throw Error("Error installing ScrollTimeline polyfill: could not attach WAAPI's getAnimations to DOM Element");if(!Reflect.defineProperty(document,"getAnimations",{value:wt}))throw Error("Error installing ScrollTimeline polyfill: could not attach WAAPI's getAnimations to document")}})()})();
